﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Escape编码和URl编码.aspx.cs" Inherits="Dom操作_Escape编码和URl编码" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Escape编码和&#编码 Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <script type="text/javascript">
      alert("escape:"+escape("昌"));
      alert("&#:<%=TextData.CodeEscape("昌") %>");
    </script>
        <asp:TextBox ID="TextBox1" runat="server" Height="97px" TextMode="MultiLine" 
            Width="335px"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
    </div>
    </form>
</body>
</html>
